package com.sz.mes.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

/**
 * 任务模板 Entity定义
 * @author hem
 * @version 1.0
 * @date 2024-01-26
 * Copyright © szhs
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("task_template")
public class TaskTemplate extends BaseCustomEntity {

    private static final long serialVersionUID = -7813474165581922607L;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;

    /**
     * 模板名
     */
    @Length(max = 100, message = "模板名长度应小于100")
    @TableField()
    private String templateName;

    /**
     * 模板内容
     */
    @TableField()
    private String content;

    /**
     * 操作人
     */
    @Length(max = 100, message = "操作人长度应小于100")
    @TableField()
    private String founder;

    /**
     * 类型
     */
    @Length(max=100, message="类型长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String type;

    /**
     * 版本号
     */
    @Length(max=100, message="版本号长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String version;
}
